
cp ./bash.myenv /etc

# http://askubuntu.com/questions/510709/i-can-not-find-bash-profile-in-ubuntu
# 
# use ~/.profile instead of ~/.bash_profile
#
#
# root config
echo -e "\n. /etc/bash.myenv \n" >> ~/.bashrc
cp ./.vimrc /root

#skel config
echo -e "\n. /etc/bash.myenv \n" >> /etc/skel/.bashrc
cp ./.vimrc /etc/skel

#common user
ls /home | grep -v found | awk '{print "echo -e \"\n. /etc/bash.myenv \n\" >> /home/"$1"/.bashrc"}' | bash
ls /home | grep -v found | awk '{print "cp ./.vimrc /home/"$1" ; chown "$1":"$1" /home/"$1"/.vimrc"}' | bash

#apt -y update && apt -y upgrade
apt install -y p7zip-full unrar cifs-utils

cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 

echo "Asia/Shanghai" > /etc/timezone
